/* $Id: DJudgeGWTContestService.java 138 2011-09-01 17:51:37Z altdotua@gmail.com $ */

package alt.djudge.frontend.client.rpc;

import alt.djudge.frontend.shared.dto.contest.ContestInfoDTO;
import alt.djudge.frontend.shared.dto.contest.ContestProblemInfoDTO;
import alt.djudge.frontend.shared.dto.contest.LanguageInfoDTO;
import alt.djudge.frontend.shared.dto.contest.ProblemStatementInfoDTO;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;


@RemoteServiceRelativePath("djudge-gwt-contest")
public interface DJudgeGWTContestService extends RemoteService
{
	public ContestInfoDTO getContestInfo(Long contestId);
	
	public ContestProblemInfoDTO[] getProblems(Long contestId);
	
	public ProblemStatementInfoDTO[] getStatements(Long contestProblemId);
	
	public LanguageInfoDTO[] getLanguages(Long contestId);
	
	public int submitSolution(Long contestId, Long contestProblemId, Long languageId, String sourceCode);
}
